package com.harbintransport.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "station_crowd_ranking")
public class StationCrowdRanking {

    @Id
    @Column(name = "station_name")
    private String stationName;

    @Column(name = "avg_crowd_level")
    private double avgCrowdLevel;

    public StationCrowdRanking() {
    }

    public StationCrowdRanking(String stationName, double avgCrowdLevel) {
        this.stationName = stationName;
        this.avgCrowdLevel = avgCrowdLevel;
    }

    // Getters and Setters
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public double getAvgCrowdLevel() {
        return avgCrowdLevel;
    }

    public void setAvgCrowdLevel(double avgCrowdLevel) {
        this.avgCrowdLevel = avgCrowdLevel;
    }
}